package com.bristua.barcode.supplier.controller;

import com.bristua.barcode.common.bean.Result;
import com.bristua.barcode.common.util.HandleResultUtil;
import com.bristua.barcode.supplier.biz.DisableEnablationSupplierQRCodeBiz;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Administrator on 2019/8/6 0006.
 */
@RestController
public class DisableEnablationSupplierQRCodeController {

    @Autowired
    private DisableEnablationSupplierQRCodeBiz disableEnablationSupplierQRCodeBiz;

    @PostMapping(value = "/supplier/qrcode/disableEnablation/{qrCodeId}/{status}")
    public Result disableEnablationSupplierQRCode(@PathVariable(value = "qrCodeId") String qrCodeId, @PathVariable(value = "status")Integer status){
        disableEnablationSupplierQRCodeBiz.disableEnablationSupplierQRCode(qrCodeId,status);
        return HandleResultUtil.updateSuccessResult();
    }
}
